﻿<local:DocumentBase x:Class="WPFExcelReport.WB13QI"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:ReflectionStudio.Core.Database;assembly=ReflectionStudio.Core"
        xmlns:wep="clr-namespace:WPFExcelReport"
        Height="500" Width="1024"
          
        Title="成品库存质量分析"  
     >
    <local:DocumentBase.Resources>
        <db:INTEXDataSet x:Key="iNTEXDataSet" />
    </local:DocumentBase.Resources>
    <Grid DataContext="" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="500"></RowDefinition>
        </Grid.RowDefinitions>
       
        <WrapPanel>
            <Button Content="查询" Height="25" HorizontalAlignment="Left" Margin="11,17,0,0" Name="btnQuery"
                        Click ="btnQuery_Click" VerticalAlignment="Top" Width="106" />
            <Button Content="产生报表" Height="25" HorizontalAlignment="Left" Margin="11,17,0,0" Name="btnReport"
                        Click ="btnReport_Click" VerticalAlignment="Top" Width="106" />
        </WrapPanel>

        <StackPanel Grid.Row="1" Margin="5,5,0,0">
            <WrapPanel>
                <Label Content="品种:"  Width="47"  HorizontalAlignment="Left"  FontSize="18" VerticalAlignment="Center" />
                <TextBox Name="txtArticle"  Width="122"  HorizontalAlignment="Left" Background="Azure" CharacterCasing="Upper" AcceptsTab="False" MaxLength="20" Panel.ZIndex="3"  />
                <Label Content="缸号:"  Width="47"  HorizontalAlignment="Right"   FontSize="18" VerticalAlignment="Center" />
                <TextBox Name="txtBATCH"  Width="122"  HorizontalAlignment="Left" Background="Azure" CharacterCasing="Upper" AcceptsTab="False" MaxLength="20" Panel.ZIndex="3"   />
                <Label Content="此报表仅查询40,41,KO区域成品"  Width="420" Margin="10,0,0,0" HorizontalAlignment="Left"  FontSize="18" VerticalAlignment="Center" />
            </WrapPanel>
        </StackPanel>
        <fd:FilteringDataGrid Grid.Row="2"
                              AutoGenerateColumns="False" 
                              EnableRowVirtualization="True"  
                              Margin="3,3,7,62"
                                             ItemsSource="{Binding Path=WB13QI}"
                                              x:Name="MasterData" 
                                                 CanUserReorderColumns="True"  
                                             CanUserResizeRows="True"
                                              CanUserSortColumns="True"
                                              IsFilteringCaseSensitive="False" 
                                              RowDetailsVisibilityMode="VisibleWhenSelected"   
                              
                                              EnableColumnVirtualization="True"  
                                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                              ScrollViewer.VerticalScrollBarVisibility="Auto"
                                              SelectionChanged="ItemsControls_SelectionChanged">
            <DataGrid.Columns>
                <!--ARTICLE,A.WBBBESCHICH,E.COLORDES,A.WBBFLZZUGDAT AS WBBEINDAT,A.WBBDPART,PCNUM,MTR,F.REMARK-->
                <DataGridTextColumn Binding="{Binding Path=ARTICLE}" Header="品种" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=WBBBESCHICH}" Header="后整/套色" Width="SizeToCells" MinWidth="60" />
                <DataGridTextColumn Binding="{Binding Path=COLORDES}" Header="描述" Width="SizeToCells" MinWidth="100" />
                <DataGridTextColumn Binding="{Binding Path=WBBEINDAT}" Header="入库时间" Width="SizeToCells" MinWidth="60" />
                <DataGridTextColumn Binding="{Binding Path=WBBDPART}" Header="缸号" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=PCNUM}" Header="件数" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=MTR}" Header="码数" Width="SizeToCells" MinWidth="60" />
                <DataGridTextColumn Binding="{Binding Path=REMARK}" Header="质量情况" Width="SizeToCells" MinWidth="200" />
            </DataGrid.Columns>
        </fd:FilteringDataGrid>
    </Grid>
</local:DocumentBase > 